home *** CD-ROM | disk | FTP | other *** search
/ MacHome 2001 January / MacHome Magazine Demo Disc January 2001.iso / mac / Software / Networking / InterMapper 3.0 - PPC.sea / InterMapper 3.0 - PPC / InterMapper™ 3.0-PPC / InterMapper™ 3.0-PPC.rsrc / PrTy_166_com.dartware.tcp.smtp < prev    next >
Encoding:
Text File  |  2000-07-24  |  2.4 KB  |  97 lines

  1. <!-- 
  2.     SMTP (com.dartware.tcp.smtp)
  3.     Copyright © 2000 Dartware, LLC. All rights reserved.
  4. -->
  5.  
  6. <header>
  7.     type            =     "tcp-script"
  8.     package            =     "com.dartware"
  9.     probe_name        =    "tcp.smtp"
  10.     human_name        =    "SMTP"
  11.     version            =     "1.1"
  12.     address_type    =     "IP"
  13.     port_number        =    "25"
  14.  
  15.     old_protocol    =     "8"            # Backward compat. with old numbering scheme.
  16.     old_script        =     "8003"
  17.  
  18. </header>
  19.  
  20. <description>
  21.  
  22. ≤GB≥Simple Mail Transfer Protocol≤P≥
  23.  
  24. The standard protocol used to transfer electronic mail on the Internet, as defined in ≤U2≥RFC 821≤P0≥.  The default TCP port number for SMTP connections is port 25.
  25.  
  26. This probe tries to verify that a specified email address exists on the SMTP server, using the VRFY command.  It connects to the SMTP server, introduces itself using the HELO command, then issues a VRFY command for the specified email address.  When it has received a response, the script sends the QUIT command before closing its connection to the server.
  27.  
  28. ≤i≥Email Address≤p≥ is the name or email address that we are attempting to verify.
  29.  
  30. </description>
  31.  
  32. <parameters>
  33.  
  34. "Email Address"        =    "postmaster"
  35.  
  36. </parameters>
  37.  
  38. <script>
  39.  
  40. CONN #60 (connect timeout in secs)
  41. WAIT #30 @IDLE (idle timeout in secs)
  42. MTCH "220" else goto @UNEXPECTED_GREETING
  43. EXPT "220 " else goto @DISCONNECT
  44. SEND "HELO [${_LOCALADDRESS}]\r\n"
  45. MTCH "250" else goto @BAD_HELO_RESPONSE
  46. EXPT "250 " else goto @DISCONNECT
  47. SEND "VRFY ${Email Address}\r\n"
  48. MTCH m"^25[0-9]" else goto @BAD_VRFY_RESPONSE
  49. EXPT m"^25[0-9] " else goto @DISCONNECT
  50. SEND "QUIT\r\n"
  51. MTCH "221" #+2
  52. EXPT "221 " #+1
  53. DONE OKAY
  54.  
  55. @UNEXPECTED_GREETING:
  56. STAT DOWN "[SMTP] Unexpected greeting from port ${_REMOTEPORT}. (${_LINE:50})"
  57. SEND "QUIT\r\n"
  58. MTCH "221" #+2
  59. EXPT "221 " #+1
  60. EXIT
  61.  
  62. @BAD_HELO_RESPONSE:
  63. STAT ALRM "[SMTP] Unexpected response to HELO command. (${_LINE:50})"
  64. SEND "QUIT\r\n"
  65. MTCH "221" #+2
  66. EXPT "221 " #+1
  67. EXIT
  68.  
  69. @BAD_VRFY_RESPONSE:
  70. MTCH "550" else goto @VRFY_NOT_IMPLEMENTED
  71. SEND "QUIT\r\n"
  72. MTCH "221" #+2
  73. EXPT "221 " #+1
  74. DONE OKAY
  75.  
  76. @VRFY_NOT_IMPLEMENTED:
  77. MTCH "502" else goto @UNEXPECTED_VRFY_RESPONSE
  78. SEND "QUIT\r\n"
  79. MTCH "221" #+2
  80. EXPT "221 " #+1
  81. DONE OKAY
  82.  
  83. @UNEXPECTED_VRFY_RESPONSE:
  84. STAT ALRM "[SMTP] Unexpected response to VRFY command. (${_LINE:50})"
  85. SEND "QUIT\r\n"
  86. MTCH "221" #+2
  87. EXPT "221 " #+1
  88. EXIT
  89.  
  90. @IDLE:
  91. DONE DOWN "[SMTP] No data for ${_IDLETIMEOUT} seconds.  Was expecting \"${_STRINGTOMATCH}\". [Line ${_IDLELINE}]"
  92.  
  93. @DISCONNECT:
  94. DONE DOWN "[SMTP] Connection disconnected while expecting \"${_STRINGTOMATCH}\"."
  95.  
  96. </script>
  97.